package com.qf.shopemail;

public class Demo {

    public static void main(String[] args) {

        System.out.println("Demo.main");
        System.out.println("Demo.main");
        System.out.println("Demo.main");
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("启动子线程了");
                try {
                    Thread.sleep(10000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                System.out.println("子线程运行结束");
            }
        }).start();

        System.out.println("main线程运行结束");
    }
}
